home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Compilers⁄Interps / GCC-2.3.3r12 / Tests / TestCompiler < prev    next >
Encoding:
Text File  |  1993-06-09  |  1.2 KB  |  56 lines  |  [TEXT/MPS ]

  1. # This script runs a standard set of correctness and code quality tests.
  2. # This is *not* a comprehensive test suite; however, if the compiler passes
  3. # all these and can compile itself, it is probably working correctly.
  4.  
  5. Set CleanUpFirst 1
  6.  
  7. # Parse arguments.
  8.  
  9. Loop
  10.      Break If "{#}" == 0
  11.     If "{1}" =~ /-check/
  12.     Else If "{1}" =~ /-asis/
  13.         Set CleanUpFirst 0
  14.     Else If "{1}" =~ /-c/
  15.         Set CompilerName C
  16.     Else If "{1}" =~ /-gc/
  17.         Set CompilerName gC
  18.     Else If "{1}" =~ /-help/
  19.         Echo     "TestCompiler [ options ]"
  20.         Echo    "    -check                Display commands without executing them"
  21.         Echo    "    -help                Display this message"
  22.         Echo    ""
  23.         Exit 0
  24.     Else
  25.     End If
  26.     Shift 1
  27. End Loop
  28.  
  29. If CleanUpFirst
  30.     Delete ≈.o ≈.c.a ≈_c ≈_gc ≈.makeout ≈.rtl
  31. End If
  32.  
  33. Echo Including all Mac CIncludes ...
  34.  
  35. # Run the compiler over all the cinclude files. (should synth this file)
  36.  
  37. {CompilerName} :allinclude.c
  38.  
  39. Echo Testing implementation of Apple extensions to C ...
  40.  
  41. BuildProgram parmpragma_{CompilerName}
  42. parmpragma_{CompilerName}
  43.  
  44. # need tests of direct functions
  45.  
  46. BuildProgram pascal1_{CompilerName}
  47. pascal1_{CompilerName}
  48.  
  49. #BuildProgram pascal_{CompilerName}
  50. #pascal_{CompilerName}
  51.  
  52. BuildProgram dash-b_{CompilerName}
  53. dash-b_{CompilerName}
  54.  
  55.  
  56.